/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scrabble;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

/**
 *
 * @author OTHMAN
 */
class MyListener2 implements ActionListener {
    private JTextField tx;
        
  public  MyListener2(JTextField tx)
   {
       this.tx=tx;
   }
        @Override
    public void actionPerformed(ActionEvent e) {
         Dictionnaire D = new Dictionnaire(Fenetre.langue);
        
         
        boolean v = D.VérifierMot(tx.getText());
        if(v)
        JOptionPane.showMessageDialog(null,"Ce mot existe");
        else
        JOptionPane.showMessageDialog(null,"mot introuvable");
        tx.setText("");
    }

    
}
